import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { GateControlComponent } from './gate-control/gate-control.component';
import { GateRecordsComponent } from './gate-records/gate-records.component';
import { RealTimeDataComponent } from './real-time-data/real-time-data.component';
import { EquipmentStatusComponent } from './equipment-status/equipment-status.component';
import { AbnormalRecordsComponent } from './abnormal-records/abnormal-records.component';
import { WarningsComponent } from './warnings/warnings.component';
import { GateControlListComponent } from './gate-control/gate-control-list/gate-control-list.component';
import { GateControlSketchComponent } from './gate-control/gate-control-sketch.component';
import { GateRealtimeVideoComponent } from './gate-realtime-video/gate-realtime-video.component';


const routes: Routes = [
    {
        path: '',
        children: [
            {path: '', redirectTo: '/map', pathMatch: 'full'},
            // {path: 'gt-control', component: GateControlComponent},
            {path: 'gt-control', component: GateControlSketchComponent},
            {path: 'gt-control-list', component: GateControlListComponent},
            {path: 'records', component: GateRecordsComponent},
            {path: 'realTime', component: RealTimeDataComponent},
            {path: 'equipments', component: EquipmentStatusComponent},
            {path: 'abnormal', component: AbnormalRecordsComponent},
            {path: 'gt-video', component: GateRealtimeVideoComponent},
            {path: 'warnings', component: WarningsComponent}
        ]

    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class YjqGateControlRoutingModule {
}
